import axios from "./axios";

export default {
  add: data => {
    return axios({
      method: "post",
      url: "/api/users/regiest",
      data
    });
  },
  insertmany: data => {
    return axios({
      method: "post",
      url: "/api/users/insertmany",
      data
    });
  },
  query: data => {
    return axios({
      method: "post",
      url: "/api/users/login",
      data
    });
  },
  get:params=>{
    return axios({
      method:"get",
      url:"/api/users/get",
      params
    })
  },
  getAll:()=>{
    return axios({
      method:"get",
      url:"/api/users/getAll"
    })
  }
};
